package com.yc.learn.job.pojo;

import com.yc.learn.majors.pojo.Majors;

public class Job {
    private Integer jobId;

    private String jobName;

    private Integer jobMinSal;

    private Integer jobMaxSal;

    private String jobIntro;

    private Majors majors;

    public Job() {
		super();
	}

	public Job(String jobName, Integer jobMinSal, Integer jobMaxSal, String jobIntro, Majors majors) {
		super();
		this.jobName = jobName;
		this.jobMinSal = jobMinSal;
		this.jobMaxSal = jobMaxSal;
		this.jobIntro = jobIntro;
		this.majors = majors;
	}

	public Job(Integer jobId, String jobName, Integer jobMinSal, Integer jobMaxSal, String jobIntro, Majors majors) {
		super();
		this.jobId = jobId;
		this.jobName = jobName;
		this.jobMinSal = jobMinSal;
		this.jobMaxSal = jobMaxSal;
		this.jobIntro = jobIntro;
		this.majors = majors;
	}

	public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName == null ? null : jobName.trim();
    }

    public Integer getJobMinSal() {
        return jobMinSal;
    }

    public void setJobMinSal(Integer jobMinSal) {
        this.jobMinSal = jobMinSal;
    }

    public Integer getJobMaxSal() {
        return jobMaxSal;
    }

    public void setJobMaxSal(Integer jobMaxSal) {
        this.jobMaxSal = jobMaxSal;
    }

    public String getJobIntro() {
        return jobIntro;
    }

    public void setJobIntro(String jobIntro) {
        this.jobIntro = jobIntro == null ? null : jobIntro.trim();
    }

    public Majors getMajors() {
        return majors;
    }

    public void setMajors(Majors majors) {
        this.majors = majors;
    }

	@Override
	public String toString() {
		return "Job [jobId=" + jobId + ", jobName=" + jobName + ", jobMinSal=" + jobMinSal + ", jobMaxSal=" + jobMaxSal
				+ ", jobIntro=" + jobIntro + ", majors=" + majors + "]";
	}
}